package devcamp.teama.yahooooooo.util;

import net.arnx.jsonic.JSON;

public class YahoooooooUtils {

    public static String Object2Json(Object obj) {
        return JSON.encode(obj);
    }

    public static Float String2Float(String str) throws NumberFormatException, NullPointerException {
        return Float.valueOf(str);
    }

    public static Long String2Long(String str) throws NumberFormatException, NullPointerException {
        return Long.valueOf(str);
    }
}
